package com.zzb.framework.modules.mail.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zzb.framework.modules.mail.entity.Mail;
import com.zzb.framework.modules.mail.form.MailSearchForm;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* 邮件 mapper
* Created by zhangzhenbin on 17-3-28.
*/
@Mapper
public interface MailMapper extends BaseMapper<Mail> {
    /**获取*/
    Mail get(@Param("id") String id);
    /**通过搜索条件对象查询*/
    List<Mail> selectByMailSearchForm(MailSearchForm searchForm);
    /**通过搜索条件对象查询条数*/
    Long countByMailSearchForm(MailSearchForm searchForm);
}
